<template>
<div class="registerd-container" style="background: #1896d2;height:100%">
  <div class="content" style="width:100%;top: 50%;">

    <!-- <div class="left-content" :style="{'background-image': `url('${leftImage}')`}"></div> -->

    <div class="detail-content" style="overflow: auto;margin: 0 auto;">
      <el-card class="box-card">
        <div slot="header" class="clearfix">
          <span><span v-if="userType == '1'">专家</span> <span v-if="userType == '2'">企业</span><span v-if="userType == '3'">服务机构</span><span v-if="userType == '4'">高校院所</span>注册</span>
        </div>


        <div class="item">
          <div v-if="userType == '1'" class="">
            <el-tabs type="border-card">
              <el-tab-pane>
                <span slot="label"><i class="el-icon-date"></i> 专家信息</span>
                <el-form class="" label-width="30%" style="text-align:left">
                  <el-row :gutter="20">
                    <el-col :span="20">

                      <el-form-item label="姓名">
                        <span style='position: absolute;left: -50px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入姓名，不能超过20个字符！" v-model="expert.name" style="width:80%" maxlength="20"></el-input>
                      </el-form-item>
                      <el-form-item label="性别">
                        <span style='position: absolute;left: -50px;color: #f60d0d;'>*</span>
                        <el-select v-model="expert.sex" style="width:100px" placeholder="请选择">
                          <el-option label="男" key="1" value='1'>
                          </el-option>
                          <el-option label="女" key="0" value='0'>
                          </el-option>
                        </el-select>
                      </el-form-item>

                      <el-form-item label="出生日期">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-date-picker v-model="expert.bornDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期">
                        </el-date-picker>
                      </el-form-item>

                      <el-form-item label="身份证号">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-input  placeholder="请输入身份证号" v-model="expert.code" style="width:80%"  type="number"></el-input>
                      </el-form-item>
                      <el-form-item label="上传身份证正面">
                        <div>
                          <!--这是正面照-->
                          <div class="photo">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile1" :file-list="expert.picLmIdCardFront" list-type="picture">
                              <span style='position: relative;left: -120px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>
                            <!-- <input type="file" @change="uploadImg($event)" id="IdCard"> -->
                            <!-- <input type="file"  @change="per.picLmIdCardFront"  id="IdCard"> -->

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="上传身份证反面">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile2" :file-list="expert.picLmIdCardBack" list-type="picture">
                              <span style='position: relative;left: -120px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="手持身份证">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile3" :file-list="expert.picLmIdCardInHand" list-type="picture">
                              <span style='position: relative;left: -90px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="免冠照片">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile4" :file-list="expert.picLogo" list-type="picture">
                              <span style='position: relative;left: -80px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="毕业院校">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入毕业院校，不能超过20个字符！" v-model="expert.shcool" style="width:80%"  maxlength="20"></el-input>
                      </el-form-item>
                      <el-form-item label="学历">
                        <span style='position: absolute;left: -50px;color: #f60d0d;'>*</span>
                        <el-select v-model="expert.edu" style="width:120px;height:30px" placeholder="请选择">
                          <el-option label="请选择" key="" value="">
                          </el-option>
                          <el-option label="本科" key="5" value="5">
                          </el-option>
                          <el-option label="硕士研究生" key="6" value="6">
                          </el-option>
                          <el-option label="博士研究生" key="7" value="7">
                          </el-option>
                          <el-option label="其他" key="99" value="99">
                          </el-option>
                        </el-select>
                      </el-form-item>
                      <el-form-item label="学位">
                        <span style='position: absolute;left: -50px;color: #f60d0d;'>*</span>
                        <el-select v-model="expert.academic" style="width:100px;height:30px" placeholder="请选择">
                          <el-option label="请选择" key="" value="">
                          </el-option>
                          <el-option label="学士" key="1" value="1">
                          </el-option>
                          <el-option label="硕士" key="2" value="2">
                          </el-option>
                          <el-option label="博士" key="3" value="3">
                          </el-option>
                          <el-option label="其他" key="99" value="99">
                          </el-option>
                        </el-select>
                      </el-form-item>
                      <el-form-item label="研究领域">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>

                        <el-checkbox-group v-model="expert.research_field">
                          <el-checkbox label="1">智能装备</el-checkbox>
                          <el-checkbox label="2">电子信息</el-checkbox>
                          <el-checkbox label="3">新材料 </el-checkbox>
                          <el-checkbox label="4">航空航天</el-checkbox>
                          <el-checkbox label="5">生物技术与新医药</el-checkbox>
                          <el-checkbox label="6">能源与环保</el-checkbox>
                          <el-checkbox label="7">管理</el-checkbox>
                          <el-checkbox label="99">其他</el-checkbox>
                          <el-input v-if="expert.research_field.includes('99')" placeholder="请输入其他，不能超过20个字符！" v-model="expert.researchFieldOther" maxlength="20" style="width:80%"></el-input>
                        </el-checkbox-group>
                      </el-form-item>

                      <el-form-item label="研究方向">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入研究方向，不能超过20个字符！" v-model="expert.research_area" style="width:80%"  maxlength="20"></el-input>
                      </el-form-item>

                    </el-col>

                    <el-col :span="10">


                    </el-col>

                  </el-row>
                </el-form>

              </el-tab-pane>
              <el-tab-pane label="联系方式">
                <el-form class="" label-width="30%" style="text-align:left">
                  <el-row :gutter="20">
                    <el-col :span="20">

                      <el-form-item label="工作单位">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入工作单位，不能超过20个字符！" maxlength="20" v-model="expert.work_unit" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="工作部门">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入工作部门，不能超过20个字符！" maxlength="20" v-model="expert.work_bumen" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="现任职务">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入现任职务，不能超过20个字符！"  maxlength="20" v-model="expert.zwname" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="职称">
                        <span style='position: absolute;left: -50px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入职称，不能超过20个字符！" maxlength="20" v-model="expert.zcname" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="职称级别">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-checkbox-group v-model="expert.zclevel">
                          <el-checkbox label="1">正高</el-checkbox>
                          <el-checkbox label="2">副高</el-checkbox>
                        </el-checkbox-group>
                      </el-form-item>
                      <el-form-item label="手机号">
                        <span style='position: absolute;left: -60px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入手机号" v-model="expert.mobilephone" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="办公电话">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'></span>
                        <el-input placeholder="请输入办公电话" v-model="expert.telphone" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="邮箱">
                        <span style='position: absolute;left: -50px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入邮箱" v-model="expert.fdemail" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="所在地区">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <area-cascader :level="1" v-model="expert.country" :data="pcaa"></area-cascader>
                      </el-form-item>
                      <el-form-item label="通讯地址">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入通讯地址，不能超过30个字符！" maxlength="30" v-model="expert.address" style="width:80%"></el-input>
                      </el-form-item>
                    </el-col>

                    <el-col :span="10">


                    </el-col>

                  </el-row>
                </el-form>
              </el-tab-pane>


              <el-tab-pane label="主要学术成就/研究成果/管理成就">
                <el-form class="" label-width="30%" style="text-align:left">
                  <el-row :gutter="24">
                    <el-col :span="24">

                      <el-form-item label="主要学术成就/研究成果/管理成就">
                        <span style='position: absolute;left: -230px;color: #f60d0d;'>*</span>
                        <textarea placeholder="不能超过200个字符！" maxlength="200" v-model="expert.success_record" rows="3" cols="20" style="width:60%;height: 120px;">
                </textarea>
                      </el-form-item>

                    </el-col>

                    <el-col :span="10">


                    </el-col>

                  </el-row>
                </el-form>
              </el-tab-pane>
              <el-tab-pane label="主要产学研合作项目情况（国防军工类项目）">
                <el-form class="" label-width="30%" style="text-align:left">
                  <el-row :gutter="24">
                    <el-col :span="24">
                      <el-form-item label="主要产学研合作项目情况（国防军工类项目）">
                        <span style='position: absolute;left: -300px;color: #f60d0d;'>*</span>
                        <textarea placeholder="不能超过200个字符！" maxlength="200" v-model="expert.project_desc" rows="3" cols="20" style="width:60%;height: 120px;">
                </textarea>
                      </el-form-item>

                    </el-col>

                    <el-col :span="10">


                    </el-col>

                  </el-row>
                </el-form>
              </el-tab-pane>
              <el-tab-pane label="近5年专业研究及获奖情况">
                <el-form class="" label-width="30%" style="text-align:left">
                  <el-row :gutter="22">
                    <!-- <el-form-item label=""> -->

                    <div style="margin:0 auto">

                      <el-button size="small" @click="addProjectexpert()">
                        添加课题
                      </el-button>


                      <el-form v-for="(key,item) in expert.research_record" :key=key class="" label-width="40%" style="text-align:left;border: 1px solid#ccc;border-radius: 4px;margin: 15px 0;padding: 15px;">
                        <el-row :gutter="24">
                          <el-col :span="12">


                            <el-form-item label="项目或课题名称">
                              <span style='position: absolute;left: -120px;color: #f60d0d;'>*</span>
                              <el-input placeholder="不能超过20个字符！" maxlength="20" type="text" v-model="item.projectname" style="width: 50%;"></el-input>
                            </el-form-item>

                            <el-form-item label="项目或课题来源">
                              <span style='position: absolute;left: -120px;color: #f60d0d;'>*</span>
                              <el-input placeholder="不能超过20个字符！" maxlength="20" type="text" v-model="item.projectSrc" style="width: 50%;"></el-input>
                            </el-form-item>


                            <el-form-item label="完成情况">
                              <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                              <el-input placeholder="不能超过20个字符！" maxlength="20" type="text" v-model="item.finishcon" style="width: 50%;"></el-input>
                            </el-form-item>

                            <el-form-item label="完成时间">
                              <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                              <el-date-picker v-model="item.finishtime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="" style="width: 50%;">
                              </el-date-picker>
                            </el-form-item>
                          </el-col>
                          <el-col :span="12">
                            <el-form-item label="奖项名称">
                              <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                              <el-input placeholder="不能超过20个字符！" maxlength="20" type="text" v-model="item.rewname" style="width: 50%;"></el-input>
                            </el-form-item>

                            <el-form-item label="获奖等级">
                              <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                              <el-input placeholder="不能超过20个字符！" maxlength="20" type="text" v-model="item.rewlevel" style="width: 50%;"></el-input>
                            </el-form-item>


                            <el-form-item label="获奖时间">
                              <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                              <el-date-picker v-model="item.rewtime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="" style="width: 50%;">
                              </el-date-picker>
                            </el-form-item>

                          </el-col>

                        </el-row>
                        <div style="text-align: right;">
                          <el-button size="small" @click="delProjectexpert(item)" style="color:red">
                            删除项目
                          </el-button>
                        </div>
                      </el-form>

                    </div>
                    <!-- </el-form-item> -->

                  </el-row>
                </el-form>
              </el-tab-pane>
            </el-tabs>
            <el-row>
              <div style="padding-left: 35%;margin: 40px 0  0  0;">
                <el-button type="primary" style="width: 120px;" @click="saveFile(expert)">保存</el-button>
                <el-button type="primary" style="width: 120px;" @click="toLogin()">去首页</el-button>
              </div>
            </el-row>
          </div>


          <div v-if="userType == '2'" class="">

            <el-tabs type="border-card">
              <el-tab-pane label="企业基础信息">
                <el-form class="" label-width="40%" style="text-align:left">
                  <el-row :gutter="20">
                    <el-col :span="20">

                      <el-form-item label="企业名称">
                        <span style='position: relative;left: -80px;color: #f60d0d;'>*</span>
                        <el-input  placeholder="请输入企业名称，不能超过20个字符！" maxlength="20" v-model="com.name" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="企业编码">
                        <span style='position: relative;left: -80px;color: #f60d0d;'>*</span>
                        <el-input  placeholder="请输入企业编码，不能超过20个字符！" maxlength="20" v-model="com.code" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="企业规模（注册资金）">
                        <span style='position: absolute;left: -170px;color: #f60d0d;'>*</span>
                        <el-checkbox-group v-model="com.registered_capital">
                          <el-checkbox label="1">小于2000万（含）</el-checkbox>
                          </br>
                          <el-checkbox label="2">2000-5000万</el-checkbox>
                          </br>
                          <el-checkbox label="3">5000-1亿（含）</el-checkbox>
                          </br>
                          <el-checkbox label="4">1亿-2亿（含）</el-checkbox>
                          </br>
                          <el-checkbox label="5">2亿-4亿（含）</el-checkbox>
                          </br>
                          <el-checkbox label="6">4亿及以上（含）</el-checkbox>
                        </el-checkbox-group>
                      </el-form-item>
                      <el-form-item label="注册时间">
                        <span style='position: relative;left: -80px;color: #f60d0d;'>*</span>
                        <el-date-picker v-model="com.registerDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期">
                        </el-date-picker>
                      </el-form-item>
                      <el-form-item label="注册类型">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-checkbox-group v-model="com.registered_type">
                          <el-checkbox label="1">内资企业</el-checkbox>
                          <el-checkbox label="2">合资企业</el-checkbox>
                          <el-checkbox label="3">外资企业</el-checkbox>
                        </el-checkbox-group>
                      </el-form-item>
                      <el-form-item label="所在地区">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <area-cascader :level="1" v-model="com.country" :data="pcaa"></area-cascader>
                        <!-- <area-cascader v-model="selected" :level="1" :data="pca"></area-cascader> -->
                      </el-form-item>
                      <el-form-item label="通讯地址">
                        <span style='position: relative;left: -80px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入通讯地址，不能超过20个字符！" maxlength="20" v-model="com.registeraddress" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="邮编">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入邮编" v-model="com.registerecode" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="是否高新技术企业">
                        <span style='position: absolute;left: -140px;color: #f60d0d;'>*</span>
                        <el-select v-model="com.is_high_new_tech" style="width:100px" placeholder="请选择">
                          <el-option label="是" key="1" value='1'>
                          </el-option>
                          <el-option label="否" key="0" value='0'>
                          </el-option>
                        </el-select>
                      </el-form-item>
                      <el-form-item v-show="com.is_high_new_tech == 1" label="企业所在地性质">
                        <span style='position: absolute;left: -130px;color: #f60d0d;'>*</span>
                        <el-checkbox-group v-model="com.registerSite">
                          <el-checkbox label="1">国家级高新区 </el-checkbox>
                          <el-checkbox label="2">省级高新区</el-checkbox>
                          <el-checkbox label="3">国家级经开区 </el-checkbox>
                          <el-checkbox label="4">省级经开区</el-checkbox>
                          <el-checkbox label="99">其他</el-checkbox>
                          <el-input v-if="com.registerSite.includes('99')" placeholder="请输入其他，不能超过20个字符！" maxlength="20" v-model="com.registerSiteOther" style="width:80%"></el-input>
                        </el-checkbox-group>
                      </el-form-item>
                      <el-form-item v-show="com.is_high_new_tech == 1 && com.registerSite.includes('1')" label="所在国家高新区">
                        <span v-show="com.is_high_new_tech == 1" style='position: absolute;left: -130px;color: #f60d0d;'></span>
                        <el-checkbox-group v-model="com.registerHSite">
                          <el-checkbox label="1">南京高新区</el-checkbox>
                          <el-checkbox label="2">无锡高新区</el-checkbox>
                          <el-checkbox label="3">昆山高新区 </el-checkbox>
                          <el-checkbox label="4">徐州高新区</el-checkbox>
                          <el-checkbox label="99">其他</el-checkbox>
                          <el-input v-if="com.registerHSite.includes('99')" placeholder="请输入其他，不能超过20个字符！" maxlength="20" v-model="com.registerHSiteOther" style="width:80%"></el-input>
                        </el-checkbox-group>
                      </el-form-item>
                      <el-form-item label="是否上市">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-select v-model="com.registerMarket" style="width:100px" placeholder="请选择">
                          <el-option label="是" key="1" value='1'>
                          </el-option>
                          <el-option label="否" key="0" value='0'>
                          </el-option>
                        </el-select>
                      </el-form-item>
                      <el-form-item v-show="com.registerMarket == 1" label="股票代码">
                        <span style='position: relative;left: -80px;color: #f60d0d;'></span>
                        <el-input placeholder="请输入股票代码" v-model="com.stockCode" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="上市地点">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'></span>
                        <el-checkbox-group v-model="com.registerMarkeSite">
                          <el-checkbox label="1">上交所</el-checkbox>
                          <el-checkbox label="2">深交所</el-checkbox>
                          <el-checkbox label="3">新三板 </el-checkbox>
                          <el-checkbox label="4">港交所</el-checkbox>
                          <el-checkbox label="5">主版</el-checkbox>
                          <el-checkbox label="6">中小板</el-checkbox>
                          <el-checkbox label="7">创业板</el-checkbox>
                          <el-checkbox label="99">其他</el-checkbox>
                          <el-input v-if="com.registerMarkeSite.includes('99')" placeholder="请输入其他，不能超过20个字符！" maxlength="20" v-model="com.registerMarkeSiteOther" style="width:80%"></el-input>
                        </el-checkbox-group>
                      </el-form-item>
                      <el-form-item label="所属领域">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-checkbox-group v-model="com.domain">
                          <el-checkbox label="1">智能装备</el-checkbox>
                          </br>
                          <el-checkbox label="2">电子信息</el-checkbox>
                          </br>
                          <el-checkbox label="3">新材料 </el-checkbox>
                          </br>
                          <el-checkbox label="4">航空航天</el-checkbox>
                          </br>
                          <el-checkbox label="5">生物技术与新医药</el-checkbox>
                          </br>
                          <el-checkbox label="6">能源与环保</el-checkbox>
                          </br>
                          <el-checkbox label="99">其他</el-checkbox>
                          </br>
                          <el-input v-if="com.domain.includes('99')" placeholder="请输入其他，不能超过20个字符！" maxlength="20" v-model="com.domainOther" style="width:80%"></el-input>
                        </el-checkbox-group>
                      </el-form-item>
                      <el-form-item label="主营产品">
                        <span style='position: relative;left: -80px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入主营产品，不能超过20个字符！" maxlength="20" v-model="com.product" style="width:80%"></el-input>
                      </el-form-item>
                    </el-col>

                    <el-col :span="10">


                    </el-col>

                  </el-row>
                </el-form>
              </el-tab-pane>
              <el-tab-pane label="企业法人信息">
                <el-form class="" label-width="30%" style="text-align:left">
                  <el-row :gutter="20">
                    <el-col :span="20">

                      <el-form-item label="姓名">
                        <span style='position: relative;left: -50px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入姓名，不能超过20个字符！" maxlength="20" v-model="com.lpname" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="职务">
                        <span style='position: relative;left: -50px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入职务，不能超过20个字符！" maxlength="20" v-model="com.lpzw" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="电话/手机">
                        <span style='position: relative;left: -60px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入电话/手机" v-model="com.lpphone" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="邮箱">
                        <span style='position: relative;left: -50px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入邮箱" v-model="com.lpemail" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="营业执照">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile5" :file-list="com.picOrgLicense" list-type="picture">
                              <span style='position: relative;left: -80px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="事业单位法人证书">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFilepicLpLicense" :file-list="com.picLpLicense" list-type="picture">
                              <span style='position: relative;left: -130px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="企业logo">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile7" :file-list="com.picLogo" list-type="picture">
                              <span style='position: relative;left: -80px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                    </el-col>

                    <el-col :span="10">


                    </el-col>

                  </el-row>
                </el-form>
              </el-tab-pane>
              <el-tab-pane>
                <span slot="label"><i class="el-icon-date"></i> 联系人信息</span>

                <el-form class="" label-width="30%" style="text-align:left">
                  <el-row :gutter="20">
                    <el-col :span="20">
                      <el-form-item label="姓名">
                        <span style='position: relative;left: -50px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入姓名，不能超过20个字符！" maxlength="20" v-model="com.lxname" style="width:80%"></el-input>
                      </el-form-item>

                      <el-form-item label="联系人身份证正面">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile6" :file-list="com.picLmIdCardFront" list-type="picture">
                              <span style='position: relative;left: -130px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="联系人身份证反面">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile66" :file-list="com.picLmIdCardBack" list-type="picture">
                              <span style='position: relative;left: -130px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="手持身份证">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFilepicLmIdCardInHand" :file-list="com.picLmIdCardInHand" list-type="picture">
                              <span style='position: relative;left: -100px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="职务">
                        <span style='position: relative;left: -50px;color: #f60d0d;'></span>
                        <el-input placeholder="请输入职务，不能超过20个字符！" maxlength="20" v-model="com.lxzw" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="手机号">
                        <span style='position: relative;left: -60px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入手机号" v-model="com.lxphone" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="邮箱">
                        <span style='position: relative;left: -50px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入邮箱" v-model="com.lxemail" style="width:80%"></el-input>
                      </el-form-item>
                    </el-col>

                  </el-row>
                </el-form>


              </el-tab-pane>


              <el-tab-pane label="获得知识产权情况">
                <el-form class="" label-width="40%" style="text-align:left">
                  <el-row :gutter="20">
                    <el-col :span="20">
                      <el-form-item label="发明专利数量(件)">
                        <span style='position: relative;left: -130px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入发明专利数量" v-model="com.inventionNum" style="width:80%" type="number"></el-input>
                      </el-form-item>
                      <el-form-item label="国家新药数量(件)">
                        <span style='position: relative;left: -130px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入国家新药数量" v-model="com.newDrugnum" style="width:80%" type="number"></el-input>
                      </el-form-item>
                      <el-form-item label="实用新型数量(件)">
                        <span style='position: relative;left: -130px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入实用新型数量" v-model="com.utilityModel" style="width:80%" type="number"></el-input>
                      </el-form-item>
                      <el-form-item label="集成电路布图设计专有权数量(件)">
                        <span style='position: relative;left: -220px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入集成电路布图设计专有权数量" v-model="com.integratedCircuitnum" style="width:80%" type="number"></el-input>
                      </el-form-item>
                      <el-form-item label="外观设计数量(件)">
                        <span style='position: relative;left: -130px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入外观设计数量" v-model="com.designnum" style="width:80%" type="number"></el-input>
                      </el-form-item>
                      <el-form-item label="国防专利数量(件)">
                        <span style='position: relative;left: -130px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入国防专利数量" v-model="com.nationalNum" style="width:80%" type="number"></el-input>
                      </el-form-item>
                      <el-form-item label="软件著作权数量(件)">
                        <span style='position: relative;left: -150px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入软件著作权数量" v-model="com.softwareNum" style="width:80%" type="number"></el-input>
                      </el-form-item>
                      <el-form-item label="其他数量(件)">
                        <span style='position: relative;left: -100px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入其他数量" v-model="com.othernum" style="width:80%" type="number"></el-input>
                      </el-form-item>

                    </el-col>

                    <el-col :span="10">


                    </el-col>

                  </el-row>
                </el-form>
              </el-tab-pane>

              <el-tab-pane label="企业研发情况">
                <el-form class="" label-width="40%" style="text-align:left">
                  <el-row :gutter="20">
                    <el-col :span="20">
                      <el-form-item label="研发团队人员总数(人)">
                        <span style='position: relative;left: -160px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入人员总数" v-model="com.researchTeamnum" style="width:80%" type="number"></el-input>
                      </el-form-item>
                      <el-form-item label="本科及以上人数(人)">
                        <span style='position: relative;left: -140px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入国家新药数量" v-model="com.bachelorAbovenum" style="width:80%" type="number"></el-input>
                      </el-form-item>
                      <el-form-item label="中高级职称以上人员人数(人)">
                        <span style='position: relative;left: -200px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入中高级职称人数" v-model="com.middleLevelnum" style="width:80%" type="number"></el-input>
                      </el-form-item>
                      <el-form-item label="研发团队高层次人才(人)">
                        <span style='position: relative;left: -170px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入研发团队人才人数" v-model="com.highleveltalentsnum" style="width:80%" type="number"></el-input>
                      </el-form-item>

                      <el-form-item label="高层次人才类型">
                        <span style='position: absolute;left: -120px;color: #f60d0d;'>*</span>
                        <el-checkbox-group v-model="com.highleveltalentType">
                          <el-checkbox label="1">院士</el-checkbox>
                          </br>
                          <el-checkbox label="2">国家千人</el-checkbox>
                          </br>
                          <el-checkbox label="3">青年千人 </el-checkbox>
                          </br>
                          <el-checkbox label="4">中青年科技创新领军人才</el-checkbox>
                          </br>
                          <el-checkbox label="5">长江学者</el-checkbox>
                          </br>
                          <el-checkbox label="6">国家杰青</el-checkbox>
                          </br>
                          <el-checkbox label="99">其他</el-checkbox>
                          </br>
                          <el-input v-if="com.highleveltalentType.includes('99')" placeholder="请输入其他，不能超过20个字符！" maxlength="20" v-model="com.comhighleveltalentTypeOther" style="width:80%"></el-input>
                        </el-checkbox-group>
                      </el-form-item>

                      <el-form-item :label="service_research_lastt">
                        <span style='position: absolute;left: -180px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入研发投入，不能超过20个字符！" maxlength="20" v-model="com.service_research_last" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item :label="service_research_beforet">
                        <span style='position: relative;left: -180px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入研发投入，不能超过20个字符！" maxlength="20" v-model="com.service_research_before" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item :label="service_research_previoust">
                        <span style='position: relative;left: -180px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入研发投入，不能超过20个字符！" maxlength="20" v-model="com.service_research_previous" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="平台建设情况">
                        <span style='position: absolute;left: -100px;color: #f60d0d;'>*</span>
                        <el-checkbox-group v-model="com.platform">
                          <el-checkbox label="1">企业重点实验室（国家级）</el-checkbox>
                          </br>
                          <el-checkbox label="2">企业重点实验室（省级）</el-checkbox>
                          </br>
                          <el-checkbox label="3">企业院士工作站 </el-checkbox>
                          </br>
                          <el-checkbox label="4">程技术研究中心（国家级）</el-checkbox>
                          </br>
                          <el-checkbox label="5">程技术研究中心（省级）</el-checkbox>
                          </br>
                          <el-checkbox label="99">其他</el-checkbox>
                          </br>
                          <el-input v-if="com.platform.includes('99')" placeholder="请输入其他，不能超过20个字符！" maxlength="20" v-model="com.platformOther" style="width:80%"></el-input>
                        </el-checkbox-group>
                      </el-form-item>
                    </el-col>

                    <el-col :span="10">


                    </el-col>

                  </el-row>
                </el-form>
              </el-tab-pane>

              <el-tab-pane label="创新情况">
                <el-form class="" label-width="40%" style="text-align:left">
                  <el-row :gutter="20">
                    <el-col :span="20">

                      <el-form-item label="是否承担过武器装备科研生产任务">
                        <span style='position: absolute;left: -230px;color: #f60d0d;'>*</span>
                        <el-select v-model="com.sfkyrw" style="width:100px" placeholder="请选择">
                          <el-option label="是" key="1" value='1'>
                          </el-option>
                          <el-option label="否" key="0" value='0'>
                          </el-option>
                        </el-select>
                      </el-form-item>

                      <el-form-item label="“三证”已获得">
                        <span style='position: absolute;left: -100px;color: #f60d0d;'>*</span>
                        <el-checkbox-group v-model="com.szget">
                          <el-checkbox label="1">获得武器装备科研生产单位保密资格认证一级 </el-checkbox>
                          <el-date-picker v-if="com.szget.includes('1')" v-model="com.qdtime1" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="取得时间" style="margin-left:20px;">
                          </el-date-picker>
                          </br>
                          <el-checkbox label="2">获得武器装备科研生产单位保密资格认证二级 </el-checkbox>
                          <el-date-picker v-if="com.szget.includes('2')" v-model="com.qdtime2" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="取得时间" style="margin-left:20px;">
                          </el-date-picker>
                          </br>
                          <el-checkbox label="3">获得武器装备科研生产单位保密资格认证三级 </el-checkbox>
                          <el-date-picker v-if="com.szget.includes('3')" v-model="com.qdtime3" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="取得时间" style="margin-left:20px;">
                          </el-date-picker>
                          </br>
                          <el-checkbox label="4">武器装备科研生产许可证 </el-checkbox>
                          <el-date-picker v-if="com.szget.includes('4')" v-model="com.qdtime4" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="取得时间" style="margin-left:20px;">
                          </el-date-picker>
                          </br>
                          <el-checkbox label="5">装备承制单位资格认证 </el-checkbox>
                          <el-date-picker v-if="com.szget.includes('5')" v-model="com.qdtime5" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="取得时间" style="margin-left:20px;">
                          </el-date-picker>
                          </br>
                        </el-checkbox-group>
                      </el-form-item>
                      <el-form-item label="是否计划申请">
                        <span style='position: absolute;left: -100px;color: #f60d0d;'>*</span>
                        <el-select v-model="com.szwhd" style="width:100px" placeholder="请选择">
                          <el-option label="是" key="1" value='1'>
                          </el-option>
                          <el-option label="否" key="0" value='0'>
                          </el-option>
                        </el-select>
                      </el-form-item>

                      <el-form-item label="军民融合建设管理情况">
                        <span style='position: absolute;left: -160px;color: #f60d0d;'>*</span>
                        <el-checkbox-group v-model="com.jmrhgn">
                          <el-checkbox label="1">内设专门机构</el-checkbox>
                          <el-checkbox label="2">设有专项经费</el-checkbox>
                          <el-checkbox label="3">有专人负责 </el-checkbox>
                        </el-checkbox-group>
                      </el-form-item>
                      <el-form-item v-show="com.jmrhgn == 3" label="负责人姓名">
                        <span style='position: relative;left: -100px;color: #f60d0d;'></span>
                        <el-input placeholder="请输入负责人姓名，不能超过20个字符！" maxlength="20" v-model="com.jmrhgnName" style="width:80%"></el-input>
                      </el-form-item>

                      <el-form-item v-show="com.jmrhgn == 3" label="负责人职务">
                        <span style='position: relative;left: -100px;color: #f60d0d;'></span>
                        <el-input placeholder="请输入负责人职务，不能超过20个字符！" maxlength="20" v-model="com.jmrhgnZW" style="width:80%"></el-input>
                      </el-form-item>

                      <el-form-item v-show="com.jmrhgn == 3" label="负责人电话">
                        <span style='position: relative;left: -100px;color: #f60d0d;'></span>
                        <el-input placeholder="请输入负责人电话" v-model="com.jmrhgnTel" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="“民参军”过程中，遇到的障碍及困难">
                        <span style='position: absolute;left: -240px;color: #f60d0d;'>*</span>
                        <el-checkbox-group v-model="com.ydkn">
                          <el-checkbox label="1">需求信息</el-checkbox>
                          </br>
                          <el-checkbox label="2">产品准入</el-checkbox>
                          </br>
                          <el-checkbox label="3">人才保障 </el-checkbox>
                          </br>
                          <el-checkbox label="4">审批程序 </el-checkbox>
                          </br>
                          <el-checkbox label="5">资质认证 </el-checkbox>
                          </br>
                          <el-checkbox label="6">无人管理 </el-checkbox>
                          </br>
                          <el-checkbox label="99">其他 </el-checkbox>
                          </br>
                          <el-input v-if="com.ydkn.includes('99')" placeholder="请输入其他，不能超过20个字符！" maxlength="20" v-model="com.comydknOther" style="width:80%"></el-input>
                        </el-checkbox-group>
                      </el-form-item>
                      <el-form-item label="“民参军”过程中企业自身存在的问题">
                        <span style='position: absolute;left: -240px;color: #f60d0d;'>*</span>
                        <el-checkbox-group v-model="com.problem">
                          <el-checkbox label="1">技术人才不足</el-checkbox>
                          </br>
                          <el-checkbox label="2">资金保障困难</el-checkbox>
                          </br>
                          <el-checkbox label="3">保密设施设备不足 </el-checkbox>
                          </br>
                          <el-checkbox label="4">需求信息不了解 </el-checkbox>
                        </el-checkbox-group>
                      </el-form-item>

                      <el-form-item label="有参军潜力的技术成果">
                        <span style='position: absolute;left: -160px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入有参军潜力的技术成果，不能超过20个字符！" maxlength="20" v-model="com.jscg" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="可用于军民融合共享的资源情况（不超过200字）">
                        <span style='position: absolute;left: -340px;color: #f60d0d;'>*</span>
                        <textarea placeholder="不能超过200个字符！" maxlength="200" v-model="com.zyqk" rows="3" cols="20" style="width:100%;height: 120px;">
                          </textarea>
                      </el-form-item>

                      <el-form-item label="对军民科技协同创新的相关建议（不超过200字）">
                        <span style='position: absolute;left: -340px;color: #f60d0d;'>*</span>
                        <textarea placeholder="不能超过200个字符！" maxlength="200" v-model="com.xgjy" rows="3" cols="20" style="width:100%;height: 120px;">
                            </textarea>
                      </el-form-item>

                    </el-col>


                  </el-row>
                </el-form>
              </el-tab-pane>


              <el-tab-pane label="创新项目">
                <el-form class="cxxm" label-width="40%" style="text-align:left">
                  <el-row :gutter="24">
                    <el-col :span="24">

                      <div style="margin:0 auto">

                        <el-button size="small" @click="addProjectcom()">
                          添加项目
                        </el-button>
                        <el-form v-for="(key,item) in com.comPorcolumnDefinitions" :key=key class="" label-width="40%" style="text-align:left;border: 1px solid#ccc;border-radius: 4px;margin: 15px 0;padding: 15px;">
                          <el-row :gutter="24">
                            <el-col :span="12">


                              <el-form-item label="项目名称">
                                <el-input placeholder="请输入项目名称，不能超过20个字符！" maxlength="20" v-model="item.name" style="width:80%"></el-input>
                              </el-form-item>

                              <el-form-item label="起止时间">
                                <el-date-picker v-model="item.time" type="datetimerange" value-format="yyyy-MM-dd" format="yyyy-MM-dd" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['12:00:00']" style="width:80%">
                                </el-date-picker>
                              </el-form-item>


                              <el-form-item label="项目来源">
                                <el-input placeholder="请输入项目来源，不能超过20个字符！" maxlength="20" v-model="item.source" style="width:80%"></el-input>
                              </el-form-item>

                            </el-col>
                            <el-col :span="12">

                              <el-form-item label="服务部门">
                                <el-checkbox-group v-model="item.fwbm">
                                  <el-checkbox label="1">海军</el-checkbox>
                                  <el-checkbox label="2">陆军</el-checkbox>
                                  <el-checkbox label="3">空军</el-checkbox>
                                  <el-checkbox label="4">火箭军</el-checkbox>
                                  <el-checkbox label="5">战略支援部队</el-checkbox>
                                  <el-checkbox label="6">军工企业</el-checkbox>
                                  <el-checkbox label="99">其他 </el-checkbox>
<!--                                  <el-input v-if="item.fwbm.includes('99')" placeholder="请输入其他，不能超过20个字符！" maxlength="20" v-model="item.fwbmOther" style="width:80%"></el-input>-->
                                </el-checkbox-group>
                              </el-form-item>

                              <el-form-item label="执行情况">
                                <el-checkbox-group v-model="item.zxqk">
                                  <el-checkbox label="1">申请</el-checkbox>
                                  <el-checkbox label="2">在研</el-checkbox>
                                  <el-checkbox label="3">验收/结题 </el-checkbox>
                                </el-checkbox-group>
                              </el-form-item>

                            </el-col>

                          </el-row>

                          <div style="text-align: right;">
                            <el-button size="small" @click="delProjectcom(item)" style="color:red">
                              删除项目
                            </el-button>
                          </div>
                        </el-form>

                      </div>
                    </el-col>

                  </el-row>
                </el-form>
              </el-tab-pane>
            </el-tabs>


            <el-row>
              <div style="padding-left: 35%;margin: 40px 0  0  0;">
                <el-button type="primary" style="width: 120px;" @click="saveFile(com)">保存</el-button>
                <el-button type="primary" style="width: 120px;" @click="toLogin()">去首页</el-button>
              </div>
            </el-row>

          </div>

          <div v-if="userType == '3'" class="">

            <el-tabs type="border-card">
              <el-tab-pane label="机构信息">
                <el-form class="" label-width="30%" style="text-align:left">
                  <el-row :gutter="20">
                    <el-col :span="20">
                      <el-form-item label="单位名称">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-input  placeholder="请输入单位名称，不能超过20个字符！"  maxlength="20" v-model="mech.name" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="统一社会信用代码">
                        <span style='position: absolute;left: -135px;color: #f60d0d;'>*</span>
                        <el-input  placeholder="请输入统一社会信用代码，不能超过20个字符！"  maxlength="20" v-model="mech.code" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="营业执照">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile0" :file-list="mech.picOrgLicense" list-type="picture">
                              <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>
                          </div>
                        </div>
                      </el-form-item>

                      <el-form-item label="机构logo">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile3" :file-list="mech.picLogo" list-type="picture">
                              <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="事业单位法人证书">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile1" :file-list="mech.picLpLicense" list-type="picture">
                              <span style='position: absolute;left: -160px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="所在地区">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <area-cascader :level="1" v-model="mech.country" :data="pcaa"></area-cascader>
                        <!-- <area-cascader v-model="selected" :level="1" :data="pca"></area-cascader> -->
                      </el-form-item>
                      <el-form-item label="联系地址">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入联系地址，不能超过20个字符！"  maxlength="20" v-model="mech.address" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="邮编">
                        <span style='position: absolute;left: -60px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入邮编" v-model="mech.ecode" style="width:80%"></el-input>
                      </el-form-item>

                      <el-form-item label="机构性质">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-checkbox-group v-model="mech.registerNature">
                          <el-checkbox label="1">企业</el-checkbox>
                          <el-checkbox label="2">科研院所</el-checkbox>
                          <el-checkbox label="3">高等院校 </el-checkbox>
                          <el-checkbox label="99">其他</el-checkbox>
                          <el-input v-if="mech.registerNature.includes('99')" placeholder="请输入其他，不能超过20个字符！"  maxlength="20" v-model="mech.mechregisterNatureOther" style="width:80%"></el-input>
                        </el-checkbox-group>
                      </el-form-item>

                      <el-form-item label="机构类别">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-checkbox-group v-model="mech.orgType">
                          <el-checkbox label="1">研究开发</el-checkbox>
                          <el-checkbox label="2">科技投融资</el-checkbox>
                          <el-checkbox label="3">技术转移 </el-checkbox>
                          <el-checkbox label="4">检验检测</el-checkbox>
                          <el-checkbox label="5">创业孵化</el-checkbox>
                          <el-checkbox label="6">知识产权</el-checkbox>
                          <el-checkbox label="7">科技评估</el-checkbox>
                          <el-checkbox label="8">标准认证</el-checkbox>
                          <el-checkbox label="91">管理咨询</el-checkbox>
                          <el-checkbox label="10">综合科技服务</el-checkbox>
                          <el-checkbox label="99">其他</el-checkbox>
                          <el-input v-if="mech.orgType.includes('99')" placeholder="请输入其他，不能超过20个字符！"  maxlength="20" v-model="mech.orgTypeOther" style="width:80%"></el-input>
                        </el-checkbox-group>
                      </el-form-item>

                      <el-form-item label="可提供的服务简介（200字以内）">
                        <span style='position: absolute;left: -225px;color: #f60d0d;'>*</span>

                        <textarea rows="3" v-model="mech.serviceAbout" cols="20" style="width:100%;height: 120px;">
                    </textarea>
                      </el-form-item>

                      <el-form-item :label="service_amount_lastt">
                        <span style='position: absolute;left: -180px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入服务收入，不能超过20个字符！"  maxlength="20" v-model="mech.service_amount_last" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item :label="service_amount_beforet">
                        <span style='position: absolute;left: -180px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入服务收入，不能超过20个字符！"  maxlength="20" v-model="mech.service_amount_before" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item :label="service_amount_previoust">
                        <span style='position: absolute;left: -180px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入服务收入，不能超过20个字符！"  maxlength="20" v-model="mech.service_amount_previous" style="width:80%"></el-input>
                      </el-form-item>

                      <el-form-item :label="service_quantity_lastt">
                        <span style='position: absolute;left: -160px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入服务数量" v-model="mech.service_quantity_last" style="width:80%" type="number"></el-input>
                      </el-form-item>
                      <el-form-item :label="service_quantity_beforet">
                        <span style='position: absolute;left: -160px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入服务数量" v-model="mech.service_quantity_before" style="width:80%" type="number"></el-input>
                      </el-form-item>
                      <el-form-item :label="service_quantity_previoust">
                        <span style='position: absolute;left: -160px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入服务数量" v-model="mech.service_quantity_previous" style="width:80%" type="number"></el-input>
                      </el-form-item>
                    </el-col>

                  </el-row>
                </el-form>
              </el-tab-pane>

              <el-tab-pane label="机构法定代表人">
                <el-form class="" label-width="30%" style="text-align:left">
                  <el-row :gutter="20">
                    <el-col :span="20">

                      <el-form-item label="姓名">
                        <span style='position: absolute;left: -50px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入姓名，不能超过20个字符！"  maxlength="20" v-model="mech.fdname" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="电话">
                        <span style='position: absolute;left: -50px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入电话" v-model="mech.fdtel" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="手机号">
                        <span style='position: absolute;left: -60px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入手机号" v-model="mech.fdphone" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="邮箱">
                        <span style='position: absolute;left: -50px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入邮箱" v-model="mech.fdemail" style="width:80%"></el-input>
                      </el-form-item>

                      <!-- <el-form-item label="法人身份证正面">
                        <div>
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile2" :file-list="mech.fuben" list-type="picture">
                              <el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="法人身份证反面">
                        <div>
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile22" :file-list="mech.fuben2" list-type="picture">
                              <el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item> -->

                    </el-col>
                    <el-col :span="10">


                    </el-col>

                  </el-row>
                </el-form>
              </el-tab-pane>
              <el-tab-pane label="机构联系人">
                <el-form class="" label-width="30%" style="text-align:left">
                  <el-row :gutter="20">
                    <el-col :span="20">

                      <el-form-item label="姓名">
                        <span style='position: absolute;left: -50px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入姓名，不能超过20个字符！"  maxlength="20" v-model="mech.linkman" style="width:80%"></el-input>
                      </el-form-item>

                      <el-form-item label="联系人身份证正面">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFilepicLmIdCardFront" :file-list="mech.picLmIdCardFront" list-type="picture">
                              <span style='position: relative;left: -140px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="联系人身份证反面">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFilepicLmIdCardBack" :file-list="mech.picLmIdCardBack" list-type="picture">
                              <span style='position: relative;left: -140px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>

                      <el-form-item label="手持身份证">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFilepicLmIdCardInHand" :file-list="mech.picLmIdCardInHand" list-type="picture">
                              <span style='position: relative;left: -120px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="职务">
                        <span style='position: absolute;left: -50px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入职务，不能超过20个字符！"  maxlength="20" v-model="mech.lxzw" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="电话">
                        <span style='position: absolute;left: -50px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入电话" v-model="mech.lxtel" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="手机号">
                        <span style='position: absolute;left: -60px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入手机号" v-model="mech.lxphone" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="邮箱">
                        <span style='position: absolute;left: -50px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入邮箱" v-model="mech.lxemail" style="width:80%"></el-input>
                      </el-form-item>
                    </el-col>

                    <el-col :span="10">


                    </el-col>

                  </el-row>
                </el-form>

              </el-tab-pane>


              <el-tab-pane label="人才队伍情况">

                <el-form class="" label-width="30%" style="text-align:left">
                  <el-row :gutter="20">
                    <el-col :span="20">
                      <el-form-item label="人员总数">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-input v-model="mech.perNum" placeholder="请输入人员总数" style="width:80%" type="number"></el-input>
                      </el-form-item>
                      <el-form-item label="本科及以上学历人员数">
                        <span style='position: absolute;left: -160px;color: #f60d0d;'>*</span>
                        <el-input v-model="mech.underPer" placeholder="请输入人员本科及以上学历人员数" style="width:80%" type="number"></el-input>
                      </el-form-item>
                      <el-form-item label="中高级职称以上人员数">
                        <span style='position: absolute;left: -160px;color: #f60d0d;'>*</span>
                        <el-input v-model="mech.MHPer" placeholder="请输入中高级职称以上人员数" style="width:80%" type="number"></el-input>
                      </el-form-item>
                    </el-col>
                  </el-row>
                </el-form>

              </el-tab-pane>

              <el-tab-pane label="项目情况">
                <el-form class="" label-width="30%" style="text-align:left">

                  <!-- <el-form-item label=""> -->

                  <div style="margin:0 auto">

                    <el-button size="small" @click="addProjectmech()">
                      添加项目
                    </el-button>


                    <el-form v-for="(key,item) in mech.PorcolumnDefinitions" :key=key class="" label-width="40%" style="text-align:left;border: 1px solid#ccc;border-radius: 4px;margin: 15px 0;padding: 15px;">
                      <el-row :gutter="24">
                        <el-col :span="8">


                          <el-form-item label="项目名称">
                            <el-input placeholder="请输入项目名称，不能超过20个字符！"  maxlength="20" v-model="item.name" style="width:130%"></el-input>
                          </el-form-item>

                          <el-form-item label="起止时间">

                            <el-date-picker v-model="item.time" type="datetimerange" value-format="yyyy-MM-dd" format="yyyy-MM-dd" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['12:00:00']" style="width:130%">
                            </el-date-picker>
                          </el-form-item>


                          <el-form-item label="项目来源">
                            <el-input placeholder="请输入项目来源，不能超过20个字符！"  maxlength="20" v-model="item.source" style="width:130%"></el-input>
                          </el-form-item>

                        </el-col>
                        <el-col :span="16">

                          <el-form-item label="资助方式">
                            <el-checkbox-group v-model="item.registerSupport">
                              <el-checkbox label="1">拨款</el-checkbox>
                              <el-checkbox label="2">贴息</el-checkbox>
                              <el-checkbox label="3">减免税 </el-checkbox>
                              <el-checkbox label="4">以上全无</el-checkbox>
                              <el-checkbox label="99">其他</el-checkbox>
                              <el-input v-if="item.registerSupport.includes('99')" placeholder="请输入其他，不能超过20个字符！"  maxlength="20" v-model="item.mechregisterSupportOther" style="width:80%"></el-input>
                            </el-checkbox-group>
                          </el-form-item>

                          <el-form-item label="执行情况">
                            <el-checkbox-group v-model="item.registerImplement">
                              <el-checkbox label="1">申请</el-checkbox>
                              <el-checkbox label="2">在研</el-checkbox>
                              <el-checkbox label="3">验收/结题 </el-checkbox>
                            </el-checkbox-group>
                          </el-form-item>

                        </el-col>

                      </el-row>
                      <div style="text-align: right;">
                        <el-button size="small" @click="delProjectmech(item)" style="color:red">
                          删除项目
                        </el-button>
                      </div>
                    </el-form>

                  </div>
                  <!-- </el-form-item> -->

                </el-form>
              </el-tab-pane>
              <el-tab-pane label="所获资质及荣誉">
                <el-form class="" label-width="30%" style="text-align:left">
                  <el-row :gutter="22">
                    <!-- <el-form-item label=""> -->

                    <div style="margin:0 auto">

                      <el-button size="small" @click="addhonrmech()">
                        添加荣誉
                      </el-button>
                      <el-table class="tableH" :data="mech.honor" border style="margin-top:20px;width:100%;font-size:12px;overflow-y:auto">

                        <el-table-column align="center" label="名称">
                          <template slot-scope="scope">
                            <el-input placeholder="不能超过20个字符！"  maxlength="20"  type="text" v-model="scope.row.name" style="width:80%"></el-input>
                          </template>
                        </el-table-column>
                        <el-table-column align="center" label="获得时间">
                          <template slot-scope="scope">
                                            <span>
                                              <el-date-picker style="width:80%" v-model="scope.row.time" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="">
                                              </el-date-picker>
                                            </span>
                          </template>
                        </el-table-column>
                        <el-table-column align="center" label="颁发机构">
                          <template slot-scope="scope">
                            <el-input  placeholder="不能超过20个字符！"  maxlength="20" type="text" v-model="scope.row.issuingAgency" style="width:80%"></el-input>
                          </template>
                        </el-table-column>

                        <el-table-column align="center" label="" style="width: 50%;">
                          <template slot-scope="scope">
                            <el-button size="small" @click="delhonrmech(scope.row)" style="color:red">
                              删除
                            </el-button>
                          </template>
                        </el-table-column>
                      </el-table>
                    </div>
                    <!-- </el-form-item> -->

                  </el-row>
                </el-form>
              </el-tab-pane>
              <el-tab-pane label="主要工作成效">
                <el-form class="" label-width="30%" style="text-align:left">
                  <el-row :gutter="22">
                    <!-- <el-form-item label=""> -->

                    <div style="margin:0 auto">

                      <el-button size="small" @click="addcjmech()">
                        添加成效
                      </el-button>
                      <el-table class="tableH" :data="mech.workrPorcolumnDefinitions" border style="margin-top:20px;width:100%;font-size:12px;overflow-y:auto">

                        <el-table-column align="center" label="服务项目名称" width="400">
                          <template slot-scope="scope">
                            <el-input  placeholder="不能超过20个字符！"  maxlength="20" type="text" v-model="scope.row.name" style="width:80%"></el-input>
                          </template>
                        </el-table-column>
                        <el-table-column align="center" label="服务对象" width="400">
                          <template slot-scope="scope">
                                            <span>
                                              <el-input placeholder="不能超过20个字符！"  maxlength="20"  type="text" v-model="scope.row.object" style="width:80%"></el-input>
                                            </span>
                          </template>
                        </el-table-column>
                        <el-table-column align="center" label="服务时间起止"  >
                          <template slot-scope="scope">
                            <el-date-picker v-model="scope.row.time" type="datetimerange" value-format="yyyy-MM-dd" format="yyyy-MM-dd" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['12:00:00']" style="width:100%">
                            </el-date-picker>
                          </template>
                        </el-table-column>
                        <el-table-column align="center" label=""  width="100">
                          <template slot-scope="scope">
                            <el-button size="small" @click="delcjmech(scope.row)" style="color:red">
                              删除
                            </el-button>
                          </template>
                        </el-table-column>
                      </el-table>
                    </div>
                    <!-- </el-form-item> -->
                  </el-row>
                </el-form>
              </el-tab-pane>
            </el-tabs>
            <el-row>
              <div style="padding-left: 35%;margin: 40px 0  0  0;">
                <el-button type="primary" style="width: 120px;" @click="saveFile(mech)">保存</el-button>
                <el-button type="primary" style="width: 120px;" @click="toLogin()">去首页</el-button>
              </div>
            </el-row>
          </div>

          <div v-if="userType == '4'" class="">
            <el-tabs type="border-card">
              <el-tab-pane>
                <span slot="label"><i class="el-icon-date"></i> 高校基本信息</span>
                <el-form class="" label-width="30%" style="text-align:left">
                  <el-row :gutter="20">
                    <el-col :span="20">

                      <el-form-item label="名称">
                        <span style='position: absolute;left: -50px;color: #f60d0d;'>*</span>
                        <el-input  placeholder="请输入名称，不能超过20个字符！"  maxlength="20" v-model="school.name" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="统一社会信用代码">
                        <span style='position: absolute;left: -135px;color: #f60d0d;'>*</span>
                        <el-input  placeholder="请输入统一社会信用代码，不能超过20个字符！"  maxlength="20" v-model="school.code" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="营业执照">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile0" :file-list="school.picOrgLicense" list-type="picture">
                              <span style='position: relative;left: -80px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="事业单位法人证书">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile1" :file-list="school.picLpLicense" list-type="picture">
                              <span style='position: relative;left: -130px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="联系人身份证正面">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile2" :file-list="school.picLmIdCardFront" list-type="picture">
                              <span style='position: relative;left: -130px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="联系人身份证反面">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile22" :file-list="school.picLmIdCardBack" list-type="picture">
                              <span style='position: relative;left: -130px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>

                      <el-form-item label="手持身份证">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFilepicLmIdCardInHand" :file-list="school.picLmIdCardInHand" list-type="picture">
                              <span style='position: relative;left: -100px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="高校logo">
                        <div>
                          <!--这是背面照-->
                          <div class="photo photo1">
                            <el-upload class="upload-demo" :http-request="uploadSectionFile3" :file-list="school.picLogo" list-type="picture">
                              <span style='position: relative;left: -80px;color: #f60d0d;'>*</span><el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>

                          </div>
                        </div>
                      </el-form-item>
                      <el-form-item label="联系人姓名">
                        <span style='position: relative;left: -100px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入手机号" v-model="school.lxname" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="联系人手机号">
                        <span style='position: relative;left: -120px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入手机号" v-model="school.lxmobile" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="联系人邮箱">
                        <span style='position: relative;left: -100px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入邮箱" v-model="school.lxemail" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="所在地区">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <area-cascader :level="1" v-model="school.country" :data="pcaa"></area-cascader>
                        <!-- <area-cascader v-model="selected" :level="1" :data="pca"></area-cascader> -->
                      </el-form-item>
                      <el-form-item label="联系地址">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入联系地址，不能超过20个字符！"  maxlength="20" v-model="school.address" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="邮编">
                        <span style='position: absolute;left: -60px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入邮编" v-model="school.zip_code" style="width:80%"></el-input>
                      </el-form-item>

                      <el-form-item label="单位网址">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入单位网址" v-model="school.unit_url" style="width:80%"></el-input>
                      </el-form-item>

                      <el-form-item label="单位简介">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入单位简介，不能超过500个字符！"  maxlength="500" v-model="school.major_platform" style="width:80%"></el-input>
                      </el-form-item>
                      <el-form-item label="重大平台">
                        <span style='position: absolute;left: -80px;color: #f60d0d;'>*</span>
                        <el-input placeholder="请输入重大平台，不能超过500个字符！"  maxlength="500" v-model="school.introduction" style="width:80%"></el-input>
                      </el-form-item>
                    </el-col>



                  </el-row>
                </el-form>

              </el-tab-pane>

            </el-tabs>
            <el-row>
              <div style="padding-left: 35%;margin: 40px 0  0  0;">
                <el-button type="primary" style="width: 120px;" @click="saveFile(school)">保存</el-button>
                <el-button type="primary" style="width: 120px;" @click="toLogin()">去首页</el-button>
              </div>
            </el-row>
          </div>




        </div>

      </el-card>
    </div>
    <!-- <div class="center-content"></div> -->
    <!-- <div class="right-top"></div> -->
    <!-- <div class="left-bottom"></div> -->
  </div>
</div>
</template>

<script>
import 'vue-area-linkage/dist/index.css'; // v2 or higher
import {
  pca,
  pcaa
} from "@/components/area-data";
import {
  getUserDetail,
  setUserDetail,
  isInLibs
} from '@/api/login'
import {
  libupload
} from '@/api/library'
export default {
  data() {
    return {
      expertCodeD: false,
      comCodeD: false,
      mechCodeD: false,
      schoolCodeD: false,
      service_amount_lastt: '',
      service_amount_beforet: '',
      service_amount_previoust: '',
      service_quantity_lastt: '',
      service_quantity_beforet: '',
      service_quantity_previoust: '',
      service_research_lastt: '',
      service_research_beforet: '',
      service_research_previoust: '',
      code: '',

      expert: {
        picLmIdCardFront: [{
          url: this.imgBaseUrl + `def/idfront.png`
        }],
        picLmIdCardBack: [{
          url: this.imgBaseUrl + `def/idback.png`
        }],
        picLmIdCardInHand: [{
          url: this.imgBaseUrl + `def/handPhoto.jpg`
        }],
        picLogo: [{
          url: this.imgBaseUrl + `def/livePhoto.jpg`
        }],
        name: '',
        sex: '',
        bornDate: '',
        code: '',
        shcool: '',
        edu: '',
        academic: '',
        research_field: [],
        researchFieldOther: '',
        research_area: '',
        zwname: '',
        zcname: '',
        zclevel: [],
        work_unit: '',
        work_bumen: '',
        mobilephone: '',
        telphone: '',
        fdemail: '',
        country: '',
        address: '',
        success_record: '',
        project_desc: '',
        research_record: [{
          projectname: '',
          projectSrc: '',
          finishcon: '',
          finishtime: '',
          rewname: '',
          rewlevel: '',
          rewtime: ''
        }],
        search_param: []
      },

      school: {
        picOrgLicense: [{
          url: this.imgBaseUrl + `def/companyZZ.png`
        }],
        picLpLicense: [{
          url: this.imgBaseUrl + `def/companyZS.png`
        }],
        picLmIdCardFront: [{
          url: this.imgBaseUrl + `def/idfront.png`
        }],
        picLmIdCardBack: [{
          url: this.imgBaseUrl + `def/idback.png`
        }],
        picLmIdCardInHand: [{
          url: this.imgBaseUrl + `def/handPhoto.jpg`
        }],
        picLogo: [{
          url: this.imgBaseUrl + `def/gxlogo.png`
        }],
        lxname: '',
        lxmobile: '',
        lxemail: '',
        introduction: '',
        major_platform: '',
        unit_url: '',
        zip_code: '',
        address: '',
        country: '',
        code: '',
        name: '',
        search_param: []
      },


      mech: {
        picOrgLicense: [{
          url: this.imgBaseUrl + `def/companyZZ.png`
        }],
        picLpLicense: [{
          url: this.imgBaseUrl + `def/companyZS.png`
        }],
        // fuben: [{
        //   name: '默认',
        //   url: this.imgBaseUrl + `def/idfront.png`
        // }],
        // fuben2: [{
        //   name: '默认',
        //   url: this.imgBaseUrl + `def/idback.png`
        // }],
        picLmIdCardFront: [{
          url: this.imgBaseUrl + `def/idfront.png`
        }],
        picLmIdCardBack: [{
          url: this.imgBaseUrl + `def/idback.png`
        }],
        picLmIdCardInHand: [{
          url: this.imgBaseUrl + `def/handPhoto.jpg`
        }],
        picLogo: [{
          url: this.imgBaseUrl + `def/fwlogo.png`
        }],
        code: '',
        registerNature: [],
        mechregisterNatureOther: '',
        orgType: [],
        orgTypeOther: '',
        mechorg_typeOther: '',
        serviceAbout: '',
        service_amount_last: '',
        service_amount_before: '',
        service_amount_previous: '',
        service_quantity_last: '',
        service_quantity_before: '',
        service_quantity_previous: '',
        mechregisterSupportOther: '',
        honor: [{
          name: '',
          time: '',
          issuingAgency: ''
        }],
        PorcolumnDefinitions: [{
          name: '',
          time: [],
          source: '',
          registerImplement: [],
          registerSupport: [],
        }],
        workrPorcolumnDefinitions: [{
          name: '',
          object: '',
          time: []
        }],
        MHPer: '',
        underPer: '',
        perNum: '',
        ecode: '',
        address: '',
        country: '',
        name: '',
        fdemail: '',
        fdtel: '',
        fdphone: '',
        fdname: '',
        lxemail: '',
        lxphone: '',
        lxtel: '',
        lxzw: '',
        linkman: '',
        search_param: []
      },
      com: {
        picOrgLicense: [{
          url: this.imgBaseUrl + `def/companyZZ.png`
        }],
        picLpLicense: [{
          url: this.imgBaseUrl + `def/companyZS.png`
        }],
        picLmIdCardFront: [{
          url: this.imgBaseUrl + `def/idfront.png`
        }],
        picLmIdCardBack: [{
          url: this.imgBaseUrl + `def/idback.png`
        }],
        picLmIdCardInHand: [{
          url: this.imgBaseUrl + `def/handPhoto.jpg`
        }],
        picLogo: [{
          url: this.imgBaseUrl + `def/qylogo.png`
        }],
        lxname: '',
        lxzw: '',
        search_param: [],
        lxphone: '',
        lxemail: '',
        lpname: '',
        lpzw: '',
        lpphone: '',
        lpemail: '',
        name: '',
        code: '',
        registered_capital: [],
        registerDate: '',
        registered_type: [],
        country: '',
        registeraddress: '',
        registerecode: '',
        is_high_new_tech: '',
        registerSite: [],
        registerSiteOther: '',
        registerHSite: [],
        registerHSiteOther: '',
        registerMarket: [],
        stockCode: '',
        registerMarkeSite: [],
        registerMarkeSiteOther: '',
        domain: [],
        domainOther: '',
        product: '',
        inventionNum: '',
        newDrugnum: '',
        utilityModel: '',
        integratedCircuitnum: '',
        designnum: '',
        nationalNum: '',
        softwareNum: '',
        othernum: '',
        researchTeamnum: '',
        bachelorAbovenum: '',
        middleLevelnum: '',
        highleveltalentsnum: '',
        highleveltalentType: [],
        comhighleveltalentTypeOther: '',
        service_research_last: '',
        service_research_before: '',
        service_research_previous: '',
        platform: [],
        platformOther: '',
        sfkyrw: [],
        szget: [],
        qdtime: '',
        qdtime2: '',
        qdtime3: '',
        qdtime4: '',
        qdtime5: '',
        szwhd: [],
        jmrhgn: [],
        jmrhgnName: '',
        jmrhgnZW: '',
        jmrhgnTel: '',
        ydkn: [],
        comydknOther: '',
        problem: [],
        jscg: '',
        zyqk: '',
        xgjy: '',
        comPorcolumnDefinitions: [{
          name: '',
          time: [],
          source: '',
          fwbm: [],
          fwbmOther: '',
          zxqk: [],
        }]
      },
      userType: '1',
      registerValue: '',
      loginVerify: { // 普通登录
        phone: '',
        verity: ''
      },
      selected: [],
      pcaa: pcaa, //最多省市区三级，结合:level='2'选择，0省、1省市、2省市区
    }
  },
  async mounted() {
  debugger;
    if (window.sessionStorage.getItem('userType')) {
      this.userType = window.sessionStorage.getItem('userType')
    }
    if (this.userType == '1') {
      this.expert.name = window.sessionStorage.getItem('name')
      this.expert.code = window.sessionStorage.getItem('code')
      if (this.expert.code != "") this.expertCodeD = true

    } else if (this.userType == '2') {
      this.com.name = window.sessionStorage.getItem('name')
      this.com.code = window.sessionStorage.getItem('code')
      if (this.com.code != "") this.comCodeD = true

    } else if (this.userType == '3') {
      this.mech.name = window.sessionStorage.getItem('name')
      this.mech.code = window.sessionStorage.getItem('code')
      if (this.mech.code != "") this.mechCodeD = true

    } else if (this.userType == '4') {
      this.school.name = window.sessionStorage.getItem('name')
      this.school.code = window.sessionStorage.getItem('code')
      if (this.school.code != "") this.schoolCodeD = true
    }

    var myDate = new Date();
    this.service_amount_lastt = parseInt(myDate.getFullYear() - 1) + '年服务收入（万元）';
    this.service_amount_beforet = parseInt(myDate.getFullYear() - 2) + '年服务收入（万元）';
    this.service_amount_previoust = parseInt(myDate.getFullYear() - 3) + '年服务收入（万元）';

    this.service_quantity_lastt = parseInt(myDate.getFullYear() - 1) + '年服务数量（次）';
    this.service_quantity_beforet = parseInt(myDate.getFullYear() - 2) + '年服务数量（次）';
    this.service_quantity_previoust = parseInt(myDate.getFullYear() - 3) + '年服务数量（次）';


    this.service_research_lastt = parseInt(myDate.getFullYear() - 1) + '年研发投入（万元）';
    this.service_research_beforet = parseInt(myDate.getFullYear() - 2) + '年研发投入（万元）';
    this.service_research_previoust = parseInt(myDate.getFullYear() - 3) + '年研发投入（万元）';





  },
  methods: {

    handleChange1(file, fileList) {
      let obj = {}
      obj.name = fileList.slice(-3)[0].name
      obj.url = fileList.slice(-3)[0].url
      this.per.picLmIdCardFront.push(obj)

    },
    handleChange2(file, fileList) {
      let obj = {}
      obj.name = fileList.slice(-3)[0].name
      obj.url = fileList.slice(-3)[0].url
      this.per.picLmIdCardBack.push(obj)

    },
    handleChange3(file, fileList) {
      let obj = {}
      obj.name = fileList.slice(-3)[0].name
      obj.url = fileList.slice(-3)[0].url
      this.per.picLmIdCardInHand.push(obj)

    },
    handleRemove1(file, fileList) {
      this.per.picLmIdCardFront = []
    },
    handleRemove2(file, fileList) {
      this.per.picLmIdCardBack = []
    },
    handleRemove3(file, fileList) {
      this.per.picLmIdCardInHand = []
    },
    handlePreview(file) {
      console.log(file);
    },
    uploadImg: function(event) {
      var file = event.target.files; // (利用console.log输出看结构就知道如何处理档案资料)
      console.log(file)
      // do something...
    },
    toIndex() {
      this.$router.push({
        path: '/dashboard'
      })
    },
    async saveFile(obj) {
      if (this.userType == '1') {
        if (!this.validata.validaExpert(this.expert)) return
        this.expert.search_param = []
        let picLmIdCardFront = this.expert.picLmIdCardFront[0].url
        if (picLmIdCardFront.indexOf('/user/') > -1) {
          this.expert.picLmIdCardFront[0].url = picLmIdCardFront.substring(picLmIdCardFront.indexOf('/user/') + 1, picLmIdCardFront.length)
        } else {
          this.expert.picLmIdCardFront[0].url = picLmIdCardFront.substring(picLmIdCardFront.indexOf('/def/') + 1, picLmIdCardFront.length)
        }

        let picLmIdCardBack = this.expert.picLmIdCardBack[0].url
        if (picLmIdCardBack.indexOf('/user/') > -1) {
          this.expert.picLmIdCardBack[0].url = picLmIdCardBack.substring(picLmIdCardBack.indexOf('/user/') + 1, picLmIdCardBack.length)
        } else {
          this.expert.picLmIdCardBack[0].url = picLmIdCardBack.substring(picLmIdCardBack.indexOf('/def/') + 1, picLmIdCardBack.length)
        }

        let picLmIdCardInHand = this.expert.picLmIdCardInHand[0].url
        if (picLmIdCardInHand.indexOf('/user/') > -1) {
          this.expert.picLmIdCardInHand[0].url = picLmIdCardInHand.substring(picLmIdCardInHand.indexOf('/user/') + 1, picLmIdCardInHand.length)
        } else {
          this.expert.picLmIdCardInHand[0].url = picLmIdCardInHand.substring(picLmIdCardInHand.indexOf('/def/') + 1, picLmIdCardInHand.length)
        }

        let picLogo = this.expert.picLogo[0].url
        if (picLogo.indexOf('/user/') > -1) {
          this.expert.picLogo[0].url = picLogo.substring(picLogo.indexOf('/user/') + 1, picLogo.length)
        } else {
          this.expert.picLogo[0].url = picLogo.substring(picLogo.indexOf('/def/') + 1, picLogo.length)
        }
        obj = this.addCN1(this.expert)
      } else if (this.userType == '2') {
        if (!this.validata.validaEnterprise(this.com)) return
        this.com.search_param = []
        let picOrgLicense = this.com.picOrgLicense[0].url
        if (picOrgLicense.indexOf('/user/') > -1) {
          this.com.picOrgLicense[0].url = picOrgLicense.substring(picOrgLicense.indexOf('/user/') + 1, picOrgLicense.length)
        } else {
          this.com.picOrgLicense[0].url = picOrgLicense.substring(picOrgLicense.indexOf('/def/') + 1, picOrgLicense.length)
        }
        let picLpLicense = this.com.picLpLicense[0].url
        if (picLpLicense.indexOf('/user/') > -1) {
          this.com.picLpLicense[0].url = picLpLicense.substring(picLpLicense.indexOf('/user/') + 1, picLpLicense.length)
        } else {
          this.com.picLpLicense[0].url = picLpLicense.substring(picLpLicense.indexOf('/def/') + 1, picLpLicense.length)
        }
        let picLmIdCardFront = this.com.picLmIdCardFront[0].url
        if (picLmIdCardFront.indexOf('/user/') > -1) {
          this.com.picLmIdCardFront[0].url = picLmIdCardFront.substring(picLmIdCardFront.indexOf('/user/') + 1, picLmIdCardFront.length)
        } else {
          this.com.picLmIdCardFront[0].url = picLmIdCardFront.substring(picLmIdCardFront.indexOf('/def/') + 1, picLmIdCardFront.length)
        }

        let picLmIdCardBack = this.com.picLmIdCardBack[0].url
        if (picLmIdCardBack.indexOf('/user/') > -1) {
          this.com.picLmIdCardBack[0].url = picLmIdCardBack.substring(picLmIdCardBack.indexOf('/user/') + 1, picLmIdCardBack.length)
        } else {
          this.com.picLmIdCardBack[0].url = picLmIdCardBack.substring(picLmIdCardBack.indexOf('/def/') + 1, picLmIdCardBack.length)
        }

        let picLmIdCardInHand = this.com.picLmIdCardInHand[0].url
        if (picLmIdCardInHand.indexOf('/user/') > -1) {
          this.com.picLmIdCardInHand[0].url = picLmIdCardInHand.substring(picLmIdCardInHand.indexOf('/user/') + 1, picLmIdCardInHand.length)
        } else {
          this.com.picLmIdCardInHand[0].url = picLmIdCardInHand.substring(picLmIdCardInHand.indexOf('/def/') + 1, picLmIdCardInHand.length)
        }

        let picLogo = this.com.picLogo[0].url
        if (picLogo.indexOf('/user/') > -1) {
          this.com.picLogo[0].url = picLogo.substring(picLogo.indexOf('/user/') + 1, picLogo.length)
        } else {
          this.com.picLogo[0].url = picLogo.substring(picLogo.indexOf('/def/') + 1, picLogo.length)
        }
        obj = this.addCN2(this.com)
      } else if (this.userType == '3') {
        if (!this.validata.validaMechanism(this.mech)) return
        this.mech.search_param = []
        let picOrgLicense = this.mech.picOrgLicense[0].url
        if (picOrgLicense.indexOf('/user/') > -1) {
          this.mech.picOrgLicense[0].url = picOrgLicense.substring(picOrgLicense.indexOf('/user/') + 1, picOrgLicense.length)
        } else {
          this.mech.picOrgLicense[0].url = picOrgLicense.substring(picOrgLicense.indexOf('/def/') + 1, picOrgLicense.length)
        }
        let picLpLicense = this.mech.picLpLicense[0].url
        if (picLpLicense.indexOf('/user/') > -1) {
          this.mech.picLpLicense[0].url = picLpLicense.substring(picLpLicense.indexOf('/user/') + 1, picLpLicense.length)
        } else {
          this.mech.picLpLicense[0].url = picLpLicense.substring(picLpLicense.indexOf('/def/') + 1, picLpLicense.length)
        }
        let picLmIdCardFront = this.mech.picLmIdCardFront[0].url
        if (picLmIdCardFront.indexOf('/user/') > -1) {
          this.mech.picLmIdCardFront[0].url = picLmIdCardFront.substring(picLmIdCardFront.indexOf('/user/') + 1, picLmIdCardFront.length)
        } else {
          this.mech.picLmIdCardFront[0].url = picLmIdCardFront.substring(picLmIdCardFront.indexOf('/def/') + 1, picLmIdCardFront.length)
        }

        let picLmIdCardBack = this.mech.picLmIdCardBack[0].url
        if (picLmIdCardBack.indexOf('/user/') > -1) {
          this.mech.picLmIdCardBack[0].url = picLmIdCardBack.substring(picLmIdCardBack.indexOf('/user/') + 1, picLmIdCardBack.length)
        } else {
          this.mech.picLmIdCardBack[0].url = picLmIdCardBack.substring(picLmIdCardBack.indexOf('/def/') + 1, picLmIdCardBack.length)
        }

        let picLmIdCardInHand = this.mech.picLmIdCardInHand[0].url
        if (picLmIdCardInHand.indexOf('/user/') > -1) {
          this.mech.picLmIdCardInHand[0].url = picLmIdCardInHand.substring(picLmIdCardInHand.indexOf('/user/') + 1, picLmIdCardInHand.length)
        } else {
          this.mech.picLmIdCardInHand[0].url = picLmIdCardInHand.substring(picLmIdCardInHand.indexOf('/def/') + 1, picLmIdCardInHand.length)
        }

        let picLogo = this.mech.picLogo[0].url
        if (picLogo.indexOf('/user/') > -1) {
          this.mech.picLogo[0].url = picLogo.substring(picLogo.indexOf('/user/') + 1, picLogo.length)
        } else {
          this.mech.picLogo[0].url = picLogo.substring(picLogo.indexOf('/def/') + 1, picLogo.length)
        }
        obj = this.addCN3(this.mech)
      } else if (this.userType == '4') {
        if (!this.validata.validaHschool(this.school)) return
        this.school.search_param = []
        let picOrgLicense = this.school.picOrgLicense[0].url
        if (picOrgLicense.indexOf('/user/') > -1) {
          this.school.picOrgLicense[0].url = picOrgLicense.substring(picOrgLicense.indexOf('/user/') + 1, picOrgLicense.length)
        } else {
          this.school.picOrgLicense[0].url = picOrgLicense.substring(picOrgLicense.indexOf('/def/') + 1, picOrgLicense.length)
        }
        let picLpLicense = this.school.picLpLicense[0].url
        if (picLpLicense.indexOf('/user/') > -1) {
          this.school.picLpLicense[0].url = picLpLicense.substring(picLpLicense.indexOf('/user/') + 1, picLpLicense.length)
        } else {
          this.school.picLpLicense[0].url = picLpLicense.substring(picLpLicense.indexOf('/def/') + 1, picLpLicense.length)
        }
        let picLmIdCardFront = this.school.picLmIdCardFront[0].url
        if (picLmIdCardFront.indexOf('/user/') > -1) {
          this.school.picLmIdCardFront[0].url = picLmIdCardFront.substring(picLmIdCardFront.indexOf('/user/') + 1, picLmIdCardFront.length)
        } else {
          this.school.picLmIdCardFront[0].url = picLmIdCardFront.substring(picLmIdCardFront.indexOf('/def/') + 1, picLmIdCardFront.length)
        }

        let picLmIdCardBack = this.school.picLmIdCardBack[0].url
        if (picLmIdCardBack.indexOf('/user/') > -1) {
          this.school.picLmIdCardBack[0].url = picLmIdCardBack.substring(picLmIdCardBack.indexOf('/user/') + 1, picLmIdCardBack.length)
        } else {
          this.school.picLmIdCardBack[0].url = picLmIdCardBack.substring(picLmIdCardBack.indexOf('/def/') + 1, picLmIdCardBack.length)
        }

        let picLmIdCardInHand = this.school.picLmIdCardInHand[0].url
        if (picLmIdCardInHand.indexOf('/user/') > -1) {
          this.school.picLmIdCardInHand[0].url = picLmIdCardInHand.substring(picLmIdCardInHand.indexOf('/user/') + 1, picLmIdCardInHand.length)
        } else {
          this.school.picLmIdCardInHand[0].url = picLmIdCardInHand.substring(picLmIdCardInHand.indexOf('/def/') + 1, picLmIdCardInHand.length)
        }

        let picLogo = this.school.picLogo[0].url
        if (picLogo.indexOf('/user/') > -1) {
          this.school.picLogo[0].url = picLogo.substring(picLogo.indexOf('/user/') + 1, picLogo.length)
        } else {
          this.school.picLogo[0].url = picLogo.substring(picLogo.indexOf('/def/') + 1, picLogo.length)
        }


        obj = this.addCN4(this.school)
      }
      let arr = []
      obj.method = 'post'
      let {
        data,
        success
      } = await setUserDetail(obj, 'false')

      if (success) {
        this.$message({
          message: '保存成功',
          type: 'success'
        });

        if (this.userType == '1') {
          this.expert.picLmIdCardFront[0].url = this.imgBaseUrl + this.expert.picLmIdCardFront[0].url
          this.expert.picLmIdCardBack[0].url = this.imgBaseUrl + this.expert.picLmIdCardBack[0].url
          this.expert.picLmIdCardInHand[0].url = this.imgBaseUrl + this.expert.picLmIdCardInHand[0].url
          this.expert.picLogo[0].url = this.imgBaseUrl + this.expert.picLogo[0].url
        }
        if (this.userType == '2') {
          this.com.picOrgLicense[0].url = this.imgBaseUrl + this.com.picOrgLicense[0].url
          this.com.picLpLicense[0].url = this.imgBaseUrl + this.com.picLpLicense[0].url
          this.com.picLmIdCardFront[0].url = this.imgBaseUrl + this.com.picLmIdCardFront[0].url
          this.com.picLmIdCardBack[0].url = this.imgBaseUrl + this.com.picLmIdCardBack[0].url
          this.com.picLmIdCardInHand[0].url = this.imgBaseUrl + this.com.picLmIdCardInHand[0].url
          this.com.picLogo[0].url = this.imgBaseUrl + this.com.picLogo[0].url
        }
        if (this.userType == '3') {
          this.mech.picOrgLicense[0].url = this.imgBaseUrl + this.mech.picOrgLicense[0].url
          this.mech.picLpLicense[0].url = this.imgBaseUrl + this.mech.picLpLicense[0].url
          this.mech.picLmIdCardFront[0].url = this.imgBaseUrl + this.mech.picLmIdCardFront[0].url
          this.mech.picLmIdCardBack[0].url = this.imgBaseUrl + this.mech.picLmIdCardBack[0].url
          this.mech.picLmIdCardInHand[0].url = this.imgBaseUrl + this.mech.picLmIdCardInHand[0].url
          this.mech.picLogo[0].url = this.imgBaseUrl + this.mech.picLogo[0].url
        }
        if (this.userType == '4') {
          this.school.picOrgLicense[0].url = this.imgBaseUrl + this.school.picOrgLicense[0].url
          this.school.picLpLicense[0].url = this.imgBaseUrl + this.school.picLpLicense[0].url
          this.school.picLmIdCardFront[0].url = this.imgBaseUrl + this.school.picLmIdCardFront[0].url
          this.school.picLmIdCardBack[0].url = this.imgBaseUrl + this.school.picLmIdCardBack[0].url
          this.school.picLmIdCardInHand[0].url = this.imgBaseUrl + this.school.picLmIdCardInHand[0].url
          this.school.picLogo[0].url = this.imgBaseUrl + this.school.picLogo[0].url
        }


      } else {
        this.$message({
          message: data.message,
          type: 'success'
        });
      }

    },
    loadOneTree(code) {
      let pcadata = this.pcaa
      let arr = []
      for (var i in pcadata) {
        if (i == '86') {
          let obj = {}
          obj.date = i
          obj.value = pcadata[i]
          arr.push(obj)
        }
      }
      arr = arr[0].value
      for (var j in arr) {
        if (j == code) {
          let obj = {}
          obj.name = j
          obj.value = arr[j]
          this.arrValue1 = obj.value
        }
      }
    },
    loadtwoTree(code1, code2) {
      this.arrValue2 = []
      let pcadata = this.pcaa
      let arr = []
      for (var i in pcadata) {
        if (i == code1) {
          let obj = {}
          obj.date = i
          obj.value = pcadata[i]
          arr.push(obj)
        }
      }
      arr = arr[0].value
      for (var j in arr) {
        if (j == code2) {
          let obj = {}
          obj.name = j
          obj.value = arr[j]
          this.arrValue2 = obj.value
        }
      }
    },
    loadThreeTree(code1, code2) {
      this.arrValue3 = []
      let pcadata = this.pcaa
      let arr = []
      for (var i in pcadata) {
        if (i == code1) {
          let obj = {}
          obj.date = i
          obj.value = pcadata[i]
          arr.push(obj)
        }
      }
      if (arr.length > 0) {
        arr = arr[0].value
        for (var j in arr) {
          if (j == code2) {
            let obj = {}
            obj.name = j
            obj.value = arr[j]
            this.arrValue3 = obj.value
          }
        }
      }
    },
    addCN1(data) {
      if (data.edu.includes(1)) data.search_param.push('小学')
      if (data.edu.includes(2)) data.search_param.push('初中')
      if (data.edu.includes(3)) data.search_param.push('高中')
      if (data.edu.includes(4)) data.search_param.push('大专')
      if (data.edu.includes(5)) data.search_param.push('本科')
      if (data.edu.includes(6)) data.search_param.push('研究生')
      if (data.edu.includes(7)) data.search_param.push('博士')
      if (data.edu.includes(8)) data.search_param.push('研究生')

      if (data.academic.includes(1)) data.search_param.push('学士')
      if (data.academic.includes(2)) data.search_param.push('硕士')
      if (data.academic.includes(3)) data.search_param.push('博士')

      if (JSON.stringify(data.research_field).includes(1)) data.search_param.push('智能装备')
      if (JSON.stringify(data.research_field).includes(2)) data.search_param.push('电子信息')
      if (JSON.stringify(data.research_field).includes(3)) data.search_param.push('新材料')
      if (JSON.stringify(data.research_field).includes(4)) data.search_param.push('航空航天')
      if (JSON.stringify(data.research_field).includes(5)) data.search_param.push('生物技术与新医药')
      if (JSON.stringify(data.research_field).includes(6)) data.search_param.push('能源与环保')
      if (JSON.stringify(data.research_field).includes(7)) data.search_param.push('管理')

      if (JSON.stringify(data.zclevel).includes(1)) data.search_param.push('正高')
      if (JSON.stringify(data.zclevel).includes(2)) data.search_param.push('副高')


      if (data.country.length > 0) {
        this.loadOneTree(data.country[0])
        this.loadtwoTree(data.country[0], data.country[1])
        this.loadThreeTree(data.country[1], data.country[2])
        data.search_param.push(this.arrValue1)
        data.search_param.push(this.arrValue2)
        data.search_param.push(this.arrValue3)
      }
      data.search_param.push(JSON.stringify(data))
      return data
    },
    addCN2(data) {

      if (JSON.stringify(data.registered_capital).includes(1)) data.search_param.push('小于2000万')
      if (JSON.stringify(data.registered_capital).includes(2)) data.search_param.push('2000-5000万')
      if (JSON.stringify(data.registered_capital).includes(3)) data.search_param.push('5000-1亿')
      if (JSON.stringify(data.registered_capital).includes(4)) data.search_param.push('1亿-2亿')
      if (JSON.stringify(data.registered_capital).includes(5)) data.search_param.push('2亿-4亿')
      if (JSON.stringify(data.registered_capital).includes(6)) data.search_param.push('4亿及以上')

      if (JSON.stringify(data.registered_type).includes(1)) data.search_param.push('内资企业')
      if (JSON.stringify(data.registered_type).includes(2)) data.search_param.push('合资企业')
      if (JSON.stringify(data.registered_type).includes(3)) data.search_param.push('外资企业')

      if (JSON.stringify(data.registerSite).includes(1)) data.search_param.push('国家级高新区')
      if (JSON.stringify(data.registerSite).includes(2)) data.search_param.push('省级高新区')
      if (JSON.stringify(data.registerSite).includes(3)) data.search_param.push('国家级经开区')
      if (JSON.stringify(data.registerSite).includes(4)) data.search_param.push('省级经开区')

      if (JSON.stringify(data.registerHSite).includes(1)) data.search_param.push('南京高新区')
      if (JSON.stringify(data.registerHSite).includes(2)) data.search_param.push('无锡高新区')
      if (JSON.stringify(data.registerHSite).includes(3)) data.search_param.push('昆山高新区')
      if (JSON.stringify(data.registerHSite).includes(4)) data.search_param.push('徐州高新区')

      if (JSON.stringify(data.registerMarkeSite).includes(1)) data.search_param.push('上交所')
      if (JSON.stringify(data.registerMarkeSite).includes(2)) data.search_param.push('深交所')
      if (JSON.stringify(data.registerMarkeSite).includes(3)) data.search_param.push('新三板')
      if (JSON.stringify(data.registerMarkeSite).includes(4)) data.search_param.push('港交所')
      if (JSON.stringify(data.registerMarkeSite).includes(5)) data.search_param.push('主版')
      if (JSON.stringify(data.registerMarkeSite).includes(6)) data.search_param.push('中小板')
      if (JSON.stringify(data.registerMarkeSite).includes(7)) data.search_param.push('创业板')

      if (JSON.stringify(data.domain).includes(1)) data.search_param.push('智能装备')
      if (JSON.stringify(data.domain).includes(2)) data.search_param.push('电子信息')
      if (JSON.stringify(data.domain).includes(3)) data.search_param.push('新材料')
      if (JSON.stringify(data.domain).includes(4)) data.search_param.push('航空航天')
      if (JSON.stringify(data.domain).includes(5)) data.search_param.push('生物技术与新医药')
      if (JSON.stringify(data.domain).includes(6)) data.search_param.push('能源与环保')

      if (JSON.stringify(data.highleveltalentType).includes(1)) data.search_param.push('院士')
      if (JSON.stringify(data.highleveltalentType).includes(2)) data.search_param.push('国家千人')
      if (JSON.stringify(data.highleveltalentType).includes(3)) data.search_param.push('青年千人')
      if (JSON.stringify(data.highleveltalentType).includes(4)) data.search_param.push('中青年科技创新领军人才')
      if (JSON.stringify(data.highleveltalentType).includes(5)) data.search_param.push('长江学者')
      if (JSON.stringify(data.highleveltalentType).includes(6)) data.search_param.push('国家杰青')

      if (JSON.stringify(data.platform).includes(1)) data.search_param.push('企业重点实验室（国家级）')
      if (JSON.stringify(data.platform).includes(2)) data.search_param.push('企业重点实验室（省级）')
      if (JSON.stringify(data.platform).includes(3)) data.search_param.push('企业院士工作站')
      if (JSON.stringify(data.platform).includes(4)) data.search_param.push('程技术研究中心（国家级）')
      if (JSON.stringify(data.platform).includes(5)) data.search_param.push('程技术研究中心（省级）')

      if (JSON.stringify(data.szget).includes(1)) data.search_param.push('获得武器装备科研生产单位保密资格认证一级')
      if (JSON.stringify(data.szget).includes(2)) data.search_param.push('获得武器装备科研生产单位保密资格认证二级')
      if (JSON.stringify(data.szget).includes(3)) data.search_param.push('获得武器装备科研生产单位保密资格认证三级')
      if (JSON.stringify(data.szget).includes(4)) data.search_param.push('武器装备科研生产许可证')
      if (JSON.stringify(data.szget).includes(5)) data.search_param.push('装备承制单位资格认证')

      if (JSON.stringify(data.jmrhgn).includes(1)) data.search_param.push('内设专门机构')
      if (JSON.stringify(data.jmrhgn).includes(2)) data.search_param.push('设有专项经费')
      if (JSON.stringify(data.jmrhgn).includes(3)) data.search_param.push('有专人负责')

      if (JSON.stringify(data.ydkn).includes(1)) data.search_param.push('需求信息')
      if (JSON.stringify(data.ydkn).includes(2)) data.search_param.push('产品准入')
      if (JSON.stringify(data.ydkn).includes(3)) data.search_param.push('人才保障')
      if (JSON.stringify(data.ydkn).includes(4)) data.search_param.push('审批程序')
      if (JSON.stringify(data.ydkn).includes(5)) data.search_param.push('资质认证')
      if (JSON.stringify(data.ydkn).includes(6)) data.search_param.push('无人管理')

      if (JSON.stringify(data.problem).includes(1)) data.search_param.push('技术人才不足')
      if (JSON.stringify(data.problem).includes(2)) data.search_param.push('资金保障困难')
      if (JSON.stringify(data.problem).includes(3)) data.search_param.push('保密设施设备不足')
      if (JSON.stringify(data.problem).includes(4)) data.search_param.push('需求信息不了解')


      let arr = data.comPorcolumnDefinitions
      let arr1 = []
      let arr2 = []
      for (var i in arr) {
        arr1 = arr[i].fwbm
        arr2 = arr[i].zxqk
      }
      if (arr1.includes("1")) data.search_param.push('海军')
      if (arr1.includes("2")) data.search_param.push('陆军')
      if (arr1.includes("3")) data.search_param.push('空军')
      if (arr1.includes("4")) data.search_param.push('火箭军')
      if (arr1.includes("5")) data.search_param.push('战略支援部队')
      if (arr1.includes("6")) data.search_param.push('军工企业')

      if (arr2.includes("1")) data.search_param.push('申请')
      if (arr2.includes("2")) data.search_param.push('在研')
      if (arr2.includes("3")) data.search_param.push('验收/结题')

      if (data.country.length > 0) {
        this.loadOneTree(data.country[0])
        this.loadtwoTree(data.country[0], data.country[1])
        this.loadThreeTree(data.country[1], data.country[2])
        data.search_param.push(this.arrValue1)
        data.search_param.push(this.arrValue2)
        data.search_param.push(this.arrValue3)
      }
      data.search_param.push(JSON.stringify(data))
      return data
    },

    addCN3(data) {
      if (JSON.stringify(data.registerNature).includes(1)) data.search_param.push('企业')
      if (JSON.stringify(data.registerNature).includes(2)) data.search_param.push('科研院所')
      if (JSON.stringify(data.registerNature).includes(3)) data.search_param.push('高等院校')

      if (JSON.stringify(data.orgType).includes(1)) data.search_param.push('研究开发')
      if (JSON.stringify(data.orgType).includes(2)) data.search_param.push('科技投融资')
      if (JSON.stringify(data.orgType).includes(3)) data.search_param.push('技术转移')
      if (JSON.stringify(data.orgType).includes(4)) data.search_param.push('检验检测')
      if (JSON.stringify(data.orgType).includes(5)) data.search_param.push('创业孵化')
      if (JSON.stringify(data.orgType).includes(6)) data.search_param.push('知识产权')
      if (JSON.stringify(data.orgType).includes(7)) data.search_param.push('科技评估')
      if (JSON.stringify(data.orgType).includes(8)) data.search_param.push('标准认证')
      if (JSON.stringify(data.orgType).includes(91)) data.search_param.push('管理咨询')
      if (JSON.stringify(data.orgType).includes(10)) data.search_param.push('综合科技服务')


      let arr = data.PorcolumnDefinitions
      let arr1 = []
      let arr2 = []
      for (var i in arr) {
        arr1 = arr[i].registerSupport
        arr2 = arr[i].registerImplement
      }
      if (arr1.includes("1")) data.search_param.push('拨款')
      if (arr1.includes("2")) data.search_param.push('贴息')
      if (arr1.includes("3")) data.search_param.push('减免税')
      if (arr1.includes("4")) data.search_param.push('以上全无')
      if (arr2.includes("1")) data.search_param.push('申请')
      if (arr2.includes("2")) data.search_param.push('在研')
      if (arr2.includes("3")) data.search_param.push('验收/结题')
      if (data.country.length > 0) {
        this.loadOneTree(data.country[0])
        this.loadtwoTree(data.country[0], data.country[1])
        this.loadThreeTree(data.country[1], data.country[2])
        data.search_param.push(this.arrValue1)
        data.search_param.push(this.arrValue2)
        data.search_param.push(this.arrValue3)
      }
      data.search_param.push(JSON.stringify(data))
      return data
    },
    addCN4(data) {
      if (data.country.length > 0) {
        this.loadOneTree(data.country[0])
        this.loadtwoTree(data.country[0], data.country[1])
        this.loadThreeTree(data.country[1], data.country[2])
        data.search_param.push(this.arrValue1)
        data.search_param.push(this.arrValue2)
        data.search_param.push(this.arrValue3)
      }
      data.search_param.push(JSON.stringify(data))
      return data
    },
    addProjectexpert() {
      this.expert.research_record.push({
        projectname: '',
        projectSrc: '',
        finishcon: '',
        finishtime: '',
        rewname: '',
        rewlevel: '',
        rewtime: ''
      })
    },
    delProjectexpert(item) {
      this.expert.research_record.splice(this.expert.research_record.indexOf(item), 1)
      this.$message({
        type: 'info',
        message: '删除成功'
      });
    },
    addProjectcom() {
      this.com.comPorcolumnDefinitions.push({
        name: '',
        time: '',
        source: '',
        fwbm: [],
        zxqk: [],
      })
    },
    delProjectcom(item) {
      this.com.comPorcolumnDefinitions.splice(this.com.comPorcolumnDefinitions.indexOf(item), 1)
      this.$message({
        type: 'info',
        message: '删除成功'
      });
    },
    addProjectmech() {
      this.mech.PorcolumnDefinitions.push({
        name: '',
        time: [],
        source: '',
        registerImplement: [],
        registerSupport: [],
      })
    },
    delProjectmech(item) {
      this.mech.PorcolumnDefinitions.splice(this.mech.PorcolumnDefinitions.indexOf(item), 1)
      this.$message({
        type: 'info',
        message: '删除成功'
      });
    },
    addhonrmech() {
      this.mech.honor.push({
        name: '',
        time: '',
        issuingAgency: ''
      })
    },
    delhonrmech(item) {
      this.mech.honor.splice(this.mech.honor.indexOf(item), 1)
      this.$message({
        type: 'info',
        message: '删除成功'
      });
    },
    addcjmech() {
      this.mech.workrPorcolumnDefinitions.push({
        name: '',
        object: '',
        time: []
      })
    },

    delcjmech(item) {
      this.mech.workrPorcolumnDefinitions.splice(this.mech.workrPorcolumnDefinitions.indexOf(item), 1)
      this.$message({
        type: 'info',
        message: '删除成功'
      });
    },
    handleClick(tab, event) {
      console.log(tab, event)
    },
    toLogin() {

      this.$router.push({
        path: '/'
      })
    },
    toRegister() {
      if (this.login_method == 'first') {
        if (!this.validata.validatoRegistere(this.registerForm)) return
        this.$message({
          message: '1',
          type: 'warning'
        });
      } else if (this.login_method == 'second') {
        if (!this.validata.validatoRegisterp(this.loginVerify)) return
        this.$message({
          message: '2',
          type: 'warning'
        });
      }

    },

    async uploadSectionFile1(param) {
      this.expert.picLmIdCardFront = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.expert.picLmIdCardFront.push(arro)
      }
    },

    async uploadSectionFile2(param) {
      this.expert.picLmIdCardBack = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.expert.picLmIdCardBack.push(arro)
      }
    },
    async uploadSectionFile3(param) {
      this.expert.picLmIdCardInHand = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.expert.picLmIdCardInHand.push(arro)
      }
    },
    async uploadSectionFile4(param) {
      this.expert.picLogo = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.expert.picLogo.push(arro)
      }
    },

    async uploadSectionFile5(param) {
      this.com.picOrgLicense = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.com.picOrgLicense.push(arro)
      }
    },

    async uploadSectionFilepicLpLicense(param) {
      this.com.picLpLicense = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.com.picLpLicense.push(arro)
      }
    },
    async uploadSectionFile6(param) {
      this.com.picLmIdCardFront = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.com.picLmIdCardFront.push(arro)
      }
    },
    async uploadSectionFile66(param) {
      this.com.picLmIdCardBack = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.com.picLmIdCardBack.push(arro)
      }
    },

    async uploadSectionFilepicLmIdCardInHand(param) {
      this.com.picLmIdCardInHand = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.com.picLmIdCardInHand.push(arro)
      }
    },
    async uploadSectionFile7(param) {
      this.com.picLogo = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.com.picLogo.push(arro)
      }
    },

    async uploadSectionFile80(param) {
      this.mech.picOrgLicense = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.mech.picOrgLicense.push(arro)
      }
    },
    async uploadSectionFile8(param) {
      this.mech.picLpLicense = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.mech.picLpLicense.push(arro)
      }
    },
    async uploadSectionFile9(param) {
      this.mech.picLmIdCardFront = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.mech.picLmIdCardFront.push(arro)
      }
    },
    async uploadSectionFile99(param) {
      this.mech.picLmIdCardBack = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.mech.picLmIdCardBack.push(arro)
      }
    },
    async uploadSectionFile10(param) {
      this.mech.picLogo = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.mech.picLogo.push(arro)
      }
    },
    async uploadSectionFile110(param) {
      this.school.picOrgLicense = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.school.picOrgLicense.push(arro)
      }
    },
    async uploadSectionFile11(param) {
      this.school.picLpLicense = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.school.picLpLicense.push(arro)
      }
    },
    async uploadSectionFile12(param) {
      this.school.picLmIdCardFront = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.school.picLmIdCardFront.push(arro)
      }
    },
    async uploadSectionFile122(param) {
      this.school.picLmIdCardBack = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.school.picLmIdCardBack.push(arro)
      }
    },
    async mechuploadSectionFile0(param) {
      this.mech.picOrgLicense = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.mech.picOrgLicense.push(arro)
      }
    },
    async mechuploadSectionFile1(param) {
      this.mech.picLpLicense = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.mech.picLpLicense.push(arro)
      }
    },
    async mechuploadSectionFile3(param) {
      this.mech.picLogo = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.mech.picLogo.push(arro)
      }
    },
    async mechuploadSectionFilepicLmIdCardFront(param) {
      this.mech.picLmIdCardFront = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.mech.picLmIdCardFront.push(arro)
      }
    },

    async mechuploadSectionFilepicLmIdCardBack(param) {
      this.mech.picLmIdCardBack = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.mech.picLmIdCardBack.push(arro)
      }
    },

    async mechuploadSectionFilepicLmIdCardInHand(param) {
      this.mech.picLmIdCardInHand = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.mech.picLmIdCardInHand.push(arro)
      }
    },
    async schooluploadSectionFilepicLmIdCardInHand(param) {
      this.school.picLmIdCardInHand = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.school.picLmIdCardInHand.push(arro)
      }
    },
    async uploadSectionFile13(param) {
      this.school.picLogo = []
      var fileObj = param.file;
      // 接收上传文件的后台地址
      // FormData 对象
      var form = new FormData();
      // 文件对象
      form.append("file", fileObj);
      // 其他参数
      // form.append("xxx", xxx);
      let {
        data,
        success
      } = await libupload(form)
      if (success) {
        let arro = {}
        arro.name = data.fileName,
          arro.url = this.imgBaseUrl + `user/` + data
        this.school.picLogo.push(arro)
      }
    },
  }
}
</script>

<style rel="stylesheet/scss" lang="scss">
@import '../../styles/index.scss'; // 全局自定义的css样式
.upload-demo {
    display: flex;
}
.cxxm .el-input__inner {
    padding: 0 30px !important;
}
.el-upload-list--picture .el-upload-list__item {
    width: 220px;
    margin-top: 0;
    height: 42px;
    padding: 0;
    margin-left: 10px;
}
.el-upload-list--picture .el-upload-list__item-thumbnail {
    width: 30px;
    height: 30px;
    margin-left: 20px;
}
.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name {
    line-height: 40px;
    margin-top: 0;
}

.el-tabs__header {
    z-index: 999;
}
.el-card__body {
    // height: 600px;
}
// .el-card {
// height: 100%;
// }
.registerd-container {
    width: 100%;
    height: 100%;
    z-index: 1;
    font-size: 20px;
    .el-radio {
        margin: 0;
    }
    .el-tabs__content {
        overflow-y: auto;
        height: 300px;
        position: relative;
    }
    .content {
        width: 100%;
        height: 80%;
        position: absolute;
        left: 50%;
        z-index: 2;
        // border:1px solid #ccc;
        transform: translate(-50%,-50%);
        .detail-content,
        .left-content {
            width: 60%;
            // border: 2px dashed  #CBBD63;
            // background-color: rgba(225, 255, 255, 0.1);
            -webkit-filter: drop-shadow(4px 4px 4px #CBBD63);
            filter: drop-shadow(4px 4px 4px #CBBD63);

        }

        .left-content {
            position: absolute;
            left: 0;
            top: 0;
            z-index: 2;
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
        }

        .right-content {
            margin: 0 auto;
            // background-color: rgba(225, 255, 255, 0.6);
            z-index: 3;

            .box-card {
                .clearfix {}
                .item {
                    position: relative;
                    // tabs
                    .el-form-item {
                        margin-top: -12px;
                    }
                    .el-tabs__nav-wrap {
                        width: 180px;
                        padding-left: 12px;
                        overflow: hidden;
                    }
                    // lable
                    .el-form-item__label {
                        display: block;
                        margin-left: 60px;
                        height: 36px;
                        color: #9ba3af;
                    }

                    // input-box
                    .el-form-item__content {
                        .el-button {
                            width: 100px;
                        }
                    }
                    .toLogin {
                        display: inline-block;
                        margin-left: 20px;
                        color: darkslateblue;
                        cursor: pointer;
                        font-size: 14px;
                    }
                }
            }
        }

    }
}
</style>
